# Nginx初始化,镜像TAG: imginit:freeradius-ct7

FROM        imginit:centos7
LABEL       attach-function="freeradius"
MAINTAINER  name="zhixia"

#添加本地资源
ADD     freeradiusrun.sh workcfg.json README.md /srv/srvdata/
ADD     raddb/ /srv/srvdata/raddb/
ADD     my.cnf /etc/my.cnf
WORKDIR /srv/srvdata/

#安装nginx软件包
RUN     set -x  && yum -y install freeradius freeradius-utils \
                   freeradius-mysql freeradius-sqlite mariadb \
                && chmod +x *.sh \
                && yum clean all && rm -rf /tmp/*

#配置目标环境
EXPOSE      1812/udp
EXPOSE      1813/udp
# USER      root
ENV         ZXDK_THIS_IMG_NAME "imginit:freeradius-ct7"

# ENTRYPOINT
CMD     [ "../imginit/initstart.sh" ]


